import 'package:get/get.dart';
import 'package:part_time_job_pro/common/cache/app_box.dart';
import 'package:part_time_job_pro/common/langs/local.dart';

class ThemeSettingState {
  final currentThemeIndex = 0.obs;

  List<String> themeList = [];

  ThemeSettingState() {
    //根据语言改变主题标题
    switch (AppBox.shared.language) {
      case 0:
        themeList = ["跟随系统主题", "浅色主题", "深色主题"];
        break;
      case 1:
        themeList = ["跟随系统主题", "浅色主题", "深色主题"];
        break;
      case 2:
        themeList = ["跟隨系統主題", "淺色主題", "深色主題"];
        break;
      case 3:
        themeList = ["followerSystemTheme", "lightMode", "darkMode"];
        break;
      default:
        themeList = ["跟随系统主题", "浅色主题", "深色主题"];
        break;
    }
  }
}
